#include<bits/stdc++.h>
using namespace std;
signed main() {
	vector<int> a;
	for (int i = 1; i <= 9; i++)
		a.push_back(i);
	int A, B, C;
	cin >> A >> B >> C;

	int flag = 0;
	do {
		int t1 = a[0] * 100 + a[1] * 10 + a[2];
		int t2 = a[3] * 100 + a[4] * 10 + a[5];
		int t3 = a[6] * 100 + a[7] * 10 + a[8];
		if (t1 * B == t2 * A && t1 * C == t3 * A) {
			flag = 1;
			cout << t1 << " " << t2 << " " << t3 << endl;
		}
	} while (next_permutation(a.begin(), a.end()));
	if (!flag)
		cout << "No!!!";
	return 0;
}
